package io.geekidea.boot.test.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import io.geekidea.boot.test.entity.PayRecord;
import io.geekidea.boot.test.query.PayRecordQuery;
import io.geekidea.boot.test.vo.PayRecordVo;
import io.geekidea.boot.test.query.AppPayRecordQuery;
import io.geekidea.boot.test.vo.AppPayRecordVo;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * 消费记录 Mapper 接口
 *
 * @author geekidea
 * @since 2025-03-26
 */
@Mapper
public interface PayRecordMapper extends BaseMapper<PayRecord> {

    /**
     * 消费记录详情
     *
     * @param id
     * @return
     */
    PayRecordVo getPayRecordById(Long id);

    /**
     * 消费记录分页列表
     *
     * @param query
     * @return
     */
    List<PayRecordVo> getPayRecordPage(PayRecordQuery query);

    /**
     * App消费记录详情
     *
     * @param id
     * @return
     */
    AppPayRecordVo getAppPayRecordById(Long id);

    /**
     * App消费记录分页列表
     *
     * @param query
     * @return
     */
    List<AppPayRecordVo> getAppPayRecordPage(AppPayRecordQuery query);

}
